//
//  SeekSelectCell.m
//  cityCar
//
//  Created by 刘伟 on 14-11-1.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SeekSelectCell.h"

@implementation SeekSelectCell

- (void)dealloc
{
    [_MyImageView release];
    [_priceLabel release];
    [_serialLabel release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.MyImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.MyImageView];
        [_MyImageView release];
        
        self.priceLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.priceLabel];
        [_priceLabel release];
        
        self.serialLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.serialLabel];
        [_serialLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height;
    self.MyImageView.frame = CGRectMake(10, 5, width / 3 - 10, height - 15);
    self.serialLabel.frame = CGRectMake(width / 3 + 20, 10, 150, 30);
    self.priceLabel.frame = CGRectMake(width / 3 + 20, height - 40, 150, 30);
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
